package com.example.myapplication;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.AppCompatTextView;

public class TwoActivity extends AppCompatActivity {

    private AppCompatTextView backTextView = null;
    private AppCompatTextView moneyTextView = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_two);
        moneyTextView = findViewById(R.id.moneyTextView);
        moneyTextView.setText(getIntent().getStringExtra("money"));
        backTextView=findViewById(R.id.backTextView);
        backTextView.setOnClickListener(view -> finish());
    }
}
